package com.sen.pro.switches.admin.content.action;

import org.apache.log4j.Logger;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;
import org.apache.struts2.convention.annotation.InterceptorRefs;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.sen.common.struts.BaseAction;
import com.sen.pro.switches.core.util.ActionUtils;

/**
 * 宣传图片管理Action
 * 
 * @author tian qingsen
 */
@Scope("prototype")
@Controller("advsManageAction")
@Namespace("/admin/content")
@InterceptorRefs(value = { @InterceptorRef(value = "switches-needsession-stack") })
public class AdvsManageAction extends BaseAction {
	
	private static final long serialVersionUID = 297440720539287259L;
	private static Logger LOG = Logger.getLogger(AdvsManageAction.class);

	@Action(value = "advs_manage", results = { @Result(name = SUCCESS, location = "/WEB-INF/view/admin/content/advs_manage.jsp") })
	public String advsManage() {
		ActionUtils.initSiteAdvsImg(request);
		return SUCCESS;
	}

}
